// http://120.79.245.60:8080/eooker/a/statisticsAPI/stu/select/201610097027
var url = 'http://120.79.245.60:8080/eooker/a/statisticsAPI/stu/select/history/';
var uId = localStorage.UNumber;
var historyInf = [];
url += uId;
$.ajax({
    url: url,
    type: 'Get',
    dataType: 'JSON',
    crossDomain: true,
    success: function(data){
        var html = '';
        historyInf = data.resultMap.list;
        for(var i = 0; i < historyInf.length; i ++){
            var x = historyInf[i].y -'0' +1 + '排';
            var y = historyInf[i].x - '0' + 1 + '座';
            html += '<li name="'+i+'">';
            html += '<div class="div1">';
            html += '<div class="div1-1">' + historyInf[i].tutorName + '&nbsp;&nbsp;' + historyInf[i].location + '</div>';
            html += '<div class="div1-2">' + historyInf[i].courseName + '</div>';
            html += '<div class="div1-3">' + historyInf[i].time + '</div>';
            html += '</div>';
            html += '<div class="div2">';
            html += '<div class="div2-1">' + x + y + '</div>';
            html += '<div class="div2-2">' + historyInf[i].status + '</div>';
            html += '</div>';
            html += '</li>';
            // console.log(html);
        }
        $('.message-ul').html(html);
    },
    error: function () {
        mesLay("网络连接失败");
    }
});